package com.eugeneMa.service.impl;


import com.eugeneMa.dao.EnumBaseDao;
import com.eugeneMa.entity.EnumBase;
import com.eugeneMa.service.inter.EnumBaseService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 枚举类业务层实现类
 *
 * @author Eugenema
 * @date 2022/1/18 22:18
 */
@Service
public class EnumBaseServiceImpl implements EnumBaseService {
    /** 日志 */
    private Logger logger = Logger.getLogger(EnumBaseServiceImpl.class);

    /** 枚举类dao */
    @Autowired
    private EnumBaseDao enumBaseDao;


    /**
     * 获取所有枚举值
     *
     * @return 所有枚举值
     * @author Eugenema
     * @date 2022/1/18 22:18
     **/
    @Override
    public List<EnumBase> getEnumBases() {
        List<EnumBase> enumBases = enumBaseDao.queryEunmBase();
        return enumBases;
    }
}
